# -*- coding: utf-8 -*- 
"""
Created by hcx on 17-8-3 下午1:36.
@author: 胡超翔
"""
from __future__ import absolute_import
from __future__ import unicode_literals

import logging

from autodeploy.apps.common.ansible_base import AnsibleTask
from autodeploy.settings import BASE_DIR
from autodeploy.settings import MEDIA_ROOT

logger = logging.getLogger(__name__)
# try:
#     ansible = AnsibleTask(['192.168.1.108'], [MEDIA_ROOT+'/task/information.yaml'], user='root',
#                                   password='111111', group_name='all')
# except Exception as e:
#     print e
# re=ansible.run()
# print re